package com.training.collection.section3;

import java.util.LinkedList;

public class LinkedListDemo {
	public static void main(String[] args) {
		LinkedList<Integer> list = new LinkedList<>();
		list.add(1);
		list.add(2);
		list.add(3);
		list.add(4);
		list.add(5);
		
		list.remove(3);
		System.out.println(list);
		
		list.set(1,99);
		System.out.println(list);
		
		System.out.println(list.get(3));
	}
}
